package com.funfei.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.funfei.dao.UserDao;
import com.funfei.entity.User;
@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserDao userDao;
	@Override
	public boolean queryUser(User user) {
		System.out.println("queryUser.......");
		return false;
	}

	@Override
	public List<User> findAll() {
		System.out.println("findAll.......");
		User user=userDao.findOne(1L);
		System.out.println(user);
		  List<User> userlist =new ArrayList<User>();
		  userlist.add(user);
		return userlist;
	}

}
